package com.gitee.feizns.web.utils;

/**
 * @author feizns
 * @since 2019/7/14
 */
public abstract class EnumUtils {

    public static final <E extends Enum<E>> E valueOf(Enum e, Class<E> targetType) {
        return e != null ? Enum.valueOf(targetType, e.name()) : null;
    }

}
